package com.tanhua.domain.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "voice")
public class Voice implements Serializable{

    private ObjectId id; //主键id 语音id
//    private Long voiceId;// 语音id
    private Long userId;// 发送语音用户id
    private String voiceUrl; //语音文件，URL
    private Long created; //创建时间
//    private Long vid;// 获取随机值
//    private Integer remainingTimes = 10;// 剩余次数
//    private Integer uid;//是否喜欢
}
